save data in the database to xml in c [closed]
Posted
by
Jayanth N
on Programmers
See other posts from Programmers
or by Jayanth N
Published on 2012-10-03T06:29:31Z
Indexed on
2012/10/04
9:49 UTC
Read the original article
Hit count: 373
I have some data in the database. I want those data in database to be stored as an xml file.
I'm using postgresql 9.1 for database, for xml processing I'm using libxml (http://xmlsoft.org/). I'm writing the code in C language. Please help me.
Detailed explanation: I have a client, which sends me a xml file. Server receives the xml file, parses the xml file and stores it in the db. From db i want to send the details in the form of an xml to the client.
client:
<employee>
<name>glen</name>
<telephone>123456789</telephone>
</employee>
<employee>
<name>gwen</name>
<telephone>123456789</telephone>
</employee>
server parses this xml file as displayed below:
name : glen telephone:123456789
name : gwen telephone: 123456789
and saves it in a database(postgresql9.1)
if the client requests for details of the employees, i've to send it in xml form from database.I don't know how to do it can u help me out.
© Programmers or respective owner